package com.dr.cmdb.core.mapper;

import com.dr.cmdb.core.domain.Model;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.core.mapper
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/5/8 12:22
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
public interface ModelMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Model record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    Model selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Model record);
}